package com.taxinfo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.taxinfo.dao.AssetAndLibMapper;
import com.taxinfo.dao.AssetAndLibMapper;
import com.taxinfo.pojo.dto.AssetAndLibDto;
import com.taxinfo.pojo.vo.AssetAndLib;
import com.taxinfo.service.AssetAndLibService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("AssetAndLibServiceImpl")
public class AssetAndLibServiceImpl extends ServiceImpl<AssetAndLibMapper, AssetAndLib> implements AssetAndLibService {

    @Autowired
    private AssetAndLibMapper AssetAndLibMapper;

    @Override
    public List<AssetAndLibDto> selectAllData(String id) {
        return AssetAndLibMapper.selectAllData(id);
    }

    @Override
    public List<AssetAndLibDto> selectDataByParentId(String id) {
        return AssetAndLibMapper.selectDataByParentId(id);
    }

    @Override
    public List<AssetAndLibDto> selectLastDataInfo(String key) {
        return AssetAndLibMapper.selectLastDataInfo(key);
    }
}